<div ng-controller="receiptManagentOrderController">
    <div class="bg-light lter b-b wrapper-sm">
        <h1 class="m-n font-thin h4">回单管理详情(发货单)</h1>
    </div>
    <div class="wrapper-sm">
        <div class="panel panel-default">
            <div class="panel-body">
                <form name="step1" id="form" class="form-validation form-horizontal" novalidate>
                    <div class="form-group">
                        <div class="panel-heading font-bold m-t-n m-b-sm">
                            基本信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">订单编号  :</label>
                        <label class="col-lg-2 control-label text-left">{{OData.orderId}}</label>
                        <label class="col-lg-1 col-md-2 col-sm-3 col-xs-3 control-label">子询价编号  :</label>
                        <label class="col-lg-2 col-md-3 col-sm-9 col-xs-8 control-label text-left">{{OData.inquiryChildId}}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">客户订单编号  :</label>
                        <label class="col-lg-2 control-label text-left">{{OData.clientOrderId}}</label>

                        <label class="col-lg-1 pull-left control-label">下单时间  :</label>
                        <label class="col-lg-2 control-label text-left">{{OData.creationTime}}</label>
                        <label class="col-lg-1 pull-left control-label">紧急程度<span class="text-danger">*</span></label>
                        <label class="control-label pull-left">{{OData.responseTime}}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">计划专员  :</label>
                        <label class="col-lg-2 control-label text-left">{{OData.plannerName}}</label>
                        <label class="col-lg-1 pull-left control-label">商务专员<span class="text-danger">*</span></label>
                        <label class="col-lg-2 control-label text-left">{{OData.businessAffairsName}}</label>
                        <label class="col-lg-1 pull-left control-label">客服专员<span class="text-danger">*</span></label>
                        <label class="col-lg-2 control-label text-left">{{OData.customerServiceName}}</label>
                        <label class="pull-left control-label">调度专员<span class="text-danger">*</span></label>
                        <label class="col-lg-2 control-label text-left">{{OData.dispatcherName}}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">客户单位<span class="text-danger">*</span></label>
                        <label class="col-lg-2 control-label text-left">{{OData.clientName}}</label>
                        <label class="col-lg-1 pull-left control-label">发货计划人<span class="text-danger">*</span></label>
                        <label class="col-lg-2 control-label text-left">{{OData.consignorName}}</label>
                        <label class="col-lg-1 pull-left control-label">发货人电话<span class="text-danger">*</span></label>
                        <label class="col-lg-2 control-label text-left">{{OData.consignorPhone}}</label>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">发货内容  :</label>
                        <label class="col-lg-8 control-label text-left">{{OData.content}}</label>
                    </div>                
                    <div class="form-group">
                        <div class="panel-heading font-bold">
                            线路货物信息<span class="text-danger">*</span>
                        </div>
                        <div class="wrapper font-bold">
                            总线路货物信息<span class="text-danger">*</span>
                        </div>
                        <!--<div class="wrapper-sm m-t-n">
                            <div class="table-responsive">
                                <div ui-grid="orderTotalList" ui-grid-pagination ui-grid-auto-resize style="height:76px;min-width:1000px; overflow-x:hidden;">
                                    <div class="watermark" ng-if="!orderTotalList.data.length">暂无数据</div>
                                </div>
                            </div>
                        </div>-->
                        <div class="wrapper-sm m-t-n">
                            <div class="table-responsive table-cel-k">
                                <table class="table-bordered table-hover">
                                    <thead class="table-thea">
                                        <tr>
                                            <th width="9%">发货地址</th>
                                            <th width="9%">中转地</th>
                                            <th width="9%">送货地址</th>
                                            <th width="9%">发货时间</th>
                                            <th width="9%">到货时间</th>
                                            <th width="9%">里程数</th>
                                            <th width="9%">货物类别</th>
                                            <th width="9%">货物名称</th>
                                            <th width="9%">货物数量</th>
                                            <th width="5%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody class="tab-tbod">
                                        <tr ng-repeat="item in orderTotalData" title="{{item.originProvinceStr + item.originCityStr +  item.originCountyStr + item.originDetails}} {{item.viaList}} {{item.destinationProvinceStr + item.destinationCityStr +  item.destinationCountyStr + item.destinationDetails}} {{item.deliveryTime}} {{item.arrivalTime}} {{item.mileage}} {{item.goodsTypeName}} {{item.goodsName}} {{item.realQuantityOfGoods + item.goodsUnit}}">
                                            <td>{{item.originProvinceStr + item.originCityStr +  item.originCountyStr + item.originDetails}}</td>
                                            <td>{{item.viaList}}</td>
                                            <td>{{item.destinationProvinceStr + item.destinationCityStr +  item.destinationCountyStr + item.destinationDetails}}</td>
                                            <td>{{item.deliveryTime}}</td>
                                            <td>{{item.arrivalTime}}</td>
                                            <td>{{item.mileage}}</td>
                                            <td>{{item.goodsTypeName}}</td>
                                            <td>{{item.goodsName}}</td>
                                            <td>{{item.realQuantityOfGoods + item.goodsUnit}}</td>
                                            <td><a data-toggle="modal" data-target="#orderTotal" title="查看详情" class="fa fa-eye m-l-xs  primary text-info" ng-click="getOrderDetail(item)"></a></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                        <div class="wrapper font-bold">
                            子线路货物信息<span class="text-danger">*</span>
                        </div>
                        <div class="wrapper-sm m-t-n">
                            <div class="table-responsive table-cel-k">
                                <table class="table-bordered table-hover">
                                    <thead class="table-thea">
                                        <tr>
                                            <th width="9%">发货地址</th>
                                            <th width="9%">中转地</th>
                                            <th width="9%">送货地址</th>
                                            <th width="9%">货物类别</th>
                                            <th width="9%">货物名称</th>
                                            <th width="9%">吨位范围</th>
                                            <th width="9%">货物数量</th>
                                            <th width="9%">结算单位</th>
                                            <th width="9%">结算方式</th>
                                            <th width="5%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody class="tab-tbod">
                                        <tr ng-repeat="item in orderChildData" title="{{item.shipProvinceStr + item.shipCityStr + item.shipAreaStr + item.shipAddress}} {{item.viaList}} {{item.deliverProvinceStr + item.deliverCityStr +  item.deliverAreaStr + item.deliverAddress}} {{item.goodsType}} {{item.goodsName}} {{item.tonRange}} {{item.goodsNum + item.goodsNumUnit}} {{item.reckoner}} {{item.settleType}}">
                                            <td>{{item.shipProvinceStr + item.shipCityStr + item.shipAreaStr + item.shipAddress}}</td>
                                            <td>{{item.viaList}}</td>
                                            <td>{{item.deliverProvinceStr + item.deliverCityStr +  item.deliverAreaStr + item.deliverAddress}}</td>
                                            <td>{{item.goodsType}}</td>
                                            <td>{{item.goodsName}}</td>
                                            <td>{{item.tonRange}}</td>
                                            <td>{{item.goodsNum + item.goodsNumUnit}}</td>
                                            <td>{{item.reckoner}}</td>
                                            <td>{{item.settleType}}</td>
                                            <td><a data-toggle="modal" data-target="#orderChildren" title="查看详情" class="fa fa-eye m-l-xs  primary text-info" ng-click="getOrderChild(item)"></a></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="form-group" ng-show="true">
                        <div class="panel-heading font-bold m-b-sm">
                            承运商信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">承运商名称<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_carrierName" type="text" class="form-control input-sm" ng-model="orderData.carrier" disabled="disabled" name="carrierName">
                        </div>
                        <label class="pull-left control-label">承运商号码<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_carrierPhone" type="text" class="form-control input-sm" ng-model="orderData.carrierPhone" disabled="disabled" name="carrierPhone">
                        </div>
                        <label class="pull-left control-label">承运商类型<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_carrierType" class="form-control input-sm" ng-model="orderData.carrierType" name="carrierType" disabled="disabled">
                                <!--<option value="">请选择</option>-->
                            </input>
                        </div>
                    </div>
                    <div class="form-group" ng-show="true">
                        <div class="panel-heading font-bold m-b-sm">
                            承运商车辆信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">车牌号<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_carCode" type="text" class="form-control input-sm" ng-model="orderData.carCode" disabled="disabled" name="carCode">
                        </div>
                        <label class="pull-left control-label w-xs">驾驶员号码<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_driverPhone" type="text" class="form-control input-sm" ng-model="orderData.driverPhone" disabled="disabled" name="driverPhone">
                        </div>
                        <label class="pull-left control-label">驾驶员姓名<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_driverName" type="text" class="form-control input-sm" ng-model="orderData.driver" disabled="disabled" name="driverName">
                        </div>
                        <div class="line pull-in"></div>
                        <label class="col-lg-1 pull-left control-label">车长<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_carLengthO" class="form-control input-sm" ng-model="orderData.carLength" name="carLength" disabled="disabled" >
                                <!--<option value="">请选择</option>-->
                            </input>
                        </div>
                        <label class="w-xs pull-left control-label">车型<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_carTypeO" class="form-control input-sm" ng-model="orderData.vehicleType" name="carType" disabled="disabled" >
                                <!--<option value="">请选择</option>-->
                            </input>
                        </div>
                    </div>
                    <div class="form-group" ng-show="true">
                        <div class="panel-heading font-bold m-b-sm">
                            应付价格信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">应付单价<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_payablePrice" type="text" class="form-control input-sm" ng-model="orderData.payablePrice" disabled="disabled" name="payablePrice">
                        </div>
                        <div class="pull-left m-l-n-sm">
                            <input id="receiptManagent_order_payablePriceUnit" class="form-control input-sm" ng-model="orderData.payablePriceUnit" name="payablePriceUnit" disabled="disabled"  />
                                <!--<option value="">请选择</option>-->
                        </div>
                        <label class="m-l pull-left control-label">应付说明<span class="text-danger">*</span></label>
                        <div class="col-lg-6">
                            <input id="receiptManagent_order_payableSummary" type="text" class="form-control input-sm" ng-model="orderData.payableSummary" disabled="disabled" name="payableSummary">
                        </div>
                        <div class="line pull-in"></div>
                        <label class="col-lg-1 pull-left control-label">预付款<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_advancePriceOne" type="text" class="form-control input-sm" ng-model="advancePriceOne" disabled="disabled" name="advancePriceOne">
                        </div>
                        <div class="pull-left m-l-n-sm">
                            <input id="receiptManagent_order_advancePriceTypeOne" class="form-control input-sm" ng-model="advancePriceTypeOne" name="advancePriceTypeOne" disabled="disabled" >
                                <!--<option value="">请选择</option>-->
                            </input>
                        </div>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_advancePriceTwo" type="text" class="form-control input-sm" ng-model="advancePriceTwo" disabled="disabled" name="advancePriceTwo">
                        </div>
                        <div class="pull-left m-l-n-sm">
                            <input id="receiptManagent_order_advancePriceTypeTwo" class="form-control input-sm" ng-model="advancePriceTypeTwo" name="advancePriceTypeTwo" disabled="disabled" >
                                <!--<option value="">请选择</option>-->
                            </input>
                        </div>
                        <label class="m-l pull-left control-label">回单款</label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_receiptPrice" type="text" class="form-control input-sm" ng-model="orderData.receiptPrice" disabled="disabled" name="receiptPrice">
                        </div>
                        <div class="pull-left m-l-n-sm">
                           
                            <input id="receiptManagent_order_receiptPriceType" class="form-control input-sm" ng-model="orderData.receiptPriceUnit" name="receiptPriceType" disabled="disabled" >
                            </input>
                        </div>
                        <div class="line pull-in"></div>
                        <label class="col-lg-1 pull-left control-label">银行卡号<span class="text-danger">*</span></label>
                        <div class="col-lg-3">
                            <input id="receiptManagent_order_bankCode" type="text" class="form-control input-sm" ng-model="orderData.bankCode" disabled="disabled" name="bankCode">
                        </div>
                        <label class="w-xsss pull-left control-label">开户银行<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_openBank" type="text" class="form-control input-sm" ng-model="orderData.bankName" disabled="disabled" name="openBank">
                        </div>
                        <label class="w-xsss pull-left control-label">持卡人姓名<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_holder" type="text" class="form-control input-sm" ng-model="orderData.holder" disabled="disabled" name="holder">
                        </div>
                    </div>
                    <div class="form-group" ng-show="true">
                        <div class="panel-heading font-bold m-b-sm">
                            回单状态
                        </div>
                        <label class="col-lg-1 pull-left control-label">回单状态<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <select id="receiptManagent_order_receiptStatus" class="form-control input-sm" ng-model="receiptStatus" name="receiptStatus" ng-options="x.value as x.text for x in receiptStatusDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="m-l pull-left control-label">回单签收日期<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <div class="input-group input-group-sm date">
                                <input datetimepicker plugintype="datetime" id="receiptTime" name="receiptTime" ng-model="receiptTime" placeholder="回单签收日期" class="form-control" type="text" />
                                <span id="openreceiptTime" class="input-group-addon curpoint">
                                    <span class="glyphicon glyphicon-calendar"></span>
                                </span>
                            </div>
                        </div>

                        <label class="col-lg-1 pull-left control-label">结算单据状态<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <select id="receiptManagent_order_receiptBillStatus" class="form-control input-sm" ng-model="receiptBillStatus" name="receiptBillStatus" ng-options="x.value as x.text for x in receiptBillStatusDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>



                    </div>
                    <div class="form-group" ng-show="true">
                        <div class="panel-heading font-bold m-b-sm">
                            合同信息录入
                        </div>
                        <label class="col-lg-1 pull-left control-label">合同号<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_contractNumber" type="text" class="form-control input-sm" ng-model="contractData.contractNumber" disabled="disabled" name="contractNumber">
                        </div>
                        
                        <label class="w-xsss pull-left control-label">合同货物数量<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input id="receiptManagent_order_contractGoodsNum" type="text" class="form-control input-sm" ng-model="contractData.quantityOfGoods" disabled="disabled" name="contractGoodsNum"/>
                        </div>
                        <div class="pull-left m-l-n-sm m-r">
                            <input id="receiptManagent_order_contractGoodsUnit" class="form-control input-sm" ng-model="contractData.goodsUnit" name="contractGoodsUnit" disabled="disabled" >
                        </div>
                        <label class="w-xs pull-left control-label">合同日期<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <div class="input-group input-group-sm date">
                                <input id="receiptManagent_order_contractTime" datetimepicker plugintype="datetime" name="contractTime" disabled="disabled" ng-model="contractData.contractTime" placeholder="起始时间" class="form-control" type="text" />
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-calendar"></span>
                                </span>
                            </div>
                        </div>
                        <div class="line pull-in"></div>
                        <label class="col-lg-1 pull-left control-label">油卡状态<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <select id="receiptManagent_order_oilCardStatus" class="form-control input-sm" ng-model="oilCardStatus" name="oilCardStatus" required ng-options="x.value as x.text for x in oilCardStatusDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <!--<label class="pull-left control-label w-xsss">油卡卡号<span class="text-danger">*</span></label>-->
                        <label class="pull-left control-label w-xsss">油卡卡号</label>
                        <div class="col-lg-3">
                            <input id="receiptManagent_order_oilCardNum" type="text" class="form-control input-sm" ng-model="contractData.oilCardNumber" disabled="disabled" name="oilCardNum">
                        </div>
                         <label class="w-xs pull-left control-label">合同状态</label>
                        <div class="col-lg-2">
                            <select id="receiptManagent_order_contractStatus" class="form-control input-sm" ng-model="contractStatus" name="contractStatus" ng-options="x.value as x.text for x in contractStatusDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="panel-heading font-bold m-b-sm">
                            备注信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">备注</label>
                        <div class="col-lg-10">
                            <textarea id="receiptManagent_order_carryOrderRemarks" class="form-control" ng-model="orderData.remarks" placeholder="备注" name="carryOrderRemarks" ng-disabled="isCanUpdateRemarks"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="panel-heading font-bold">
                            付款信息
                        </div>
                       
                        <div class="wrapper-sm m-t-n">
                            <div class="table-responsive table-cel-k">
                                <table class="table-bordered table-hover">
                                    <thead class="table-thea">
                                        <tr>
                                            <th width="9%">费用编号</th>
                                            <th width="9%">付款方式</th>
                                            <th width="9%">申领金额</th>
                                            <th width="9%">费用类型</th>
                                            <th width="9%">申领人</th>
                                            <th width="9%">结算承运商</th>
                                            <th width="9%">费用状态</th>
                                            <th width="9%">付款日期</th>
                                            <th width="9%">支出事由</th>
                                            <th width="5%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody class="tab-tbod">
                                        <tr ng-repeat="item in orderCostList">
                                            <td title="{{item.feeCode}}">{{item.feeCode}}</td>
                                            <td title="{{item.paymentMethod}}">{{item.paymentMethod}}</td>
                                            <td title="{{item.feeAmount}}">{{item.feeAmount}}</td>
                                            <td title="{{item.feeType}}">{{item.feeType}}</td>
                                            <td title="{{item.applicant}}">{{item.applicant}}</td>
                                            <td title="{{item.carrier}}">{{item.carrier}}</td>
                                            <td title="{{item.feeStatus}}">{{item.feeStatus}}</td>
                                            <td title="{{item.payTime}}">{{item.payTime}}</td>
                                            <td title="{{item.expenditureReasons}}">{{item.expenditureReasons}}</td>
                                            <td><a data-toggle="modal" title="查看" data-target="#feeList" class="fa fa-eye m-l-xs  primary text-info" ng-click="getFeeDetail(item)"></a></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="form-group" id="uploading">
                        <div class="panel-heading font-bold m-b-sm">
                            回单信息
                        </div>  
                        <div ng-repeat="child in receiptInfoList">
                            <div class="panel-body">
                                <div class="col-md-8">
                                    <label class="pull-left m-r">{{child.title}}</label>
                                    <div class="col-md-3 form-group">
                                        <input id="receiptManagent_order_{{child.uploaderName}}" name="child.uploaderName" type="file" file-read uploader="child.uploader" options="{'childerId':'{{child.childerId}}'}" />
                                    </div>
                                </div>
                                <div class="wrapper-sm" ng-if="child.uploader.queue.length">
                                    <div class="line  pull-in"></div>
                                    <div class="wrapper-sm bg-light dk b-b m-b-xs hidden">
                                        <span class="">上传文件数: <b class="badge bg-info">{{ child.uploader.queue.length }}</b></span>
                                    </div>
                                    <table class="table bg-white-only b-a">
                                        <thead>
                                            <tr>
                                                <th width="50%">名称</th>
                                                <th >大小</th>
                                                <th >进度</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr ng-repeat="item in child.uploader.queue">
                                                <td>
                                                    <strong>{{ item.fileName }}</strong>
                                                    <div style="width: 300px;" ng-show="item._file" ng-thumb="{ file: item._file, width:300,path:item.imgSrc }"></div>
                                                    <div ng-show="!item._file">
                                                        <img data-ng-src="{{item.imgSrc}}" style="width:300px" ng-click="handleImgClick(item)" data-toggle="modal" data-target="#imgRotate">
                                                    </div>
                                                   
                                                </td>
                                                <td  nowrap>{{ item.fileSize/1024/1024|number:2 }} MB</td>
                                                <td >
                                                    <div class="progress" style="margin-bottom: 0;">
                                                        <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                                                    </div>
                                                </td>
                                                <td >
                                                    <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                                                    <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                                                    <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
                                                </td>
                                                <td nowrap>
                                                    <button id="receiptManagent_order_receiptAttachmentUpload" type="button" class="btn btn-success btn-xs" ng-click="child.uploader.upload(item)" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                                                        <span class="glyphicon glyphicon-upload"></span> 上传
                                                    </button>
                                                    <button id="receiptManagent_order_receiptAttachmentOnDelete" type="button" class="btn btn-danger btn-xs" ng-click="[child.uploader.onDelete(item)]" ng-disabled="!item.isSuccess">
                                                        <span class="glyphicon glyphicon-trash"></span> 删除
                                                    </button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        

                    </div>
                    <div class="form-group">
                        <div class="col-lg-7">
                            <button id="receiptManagent_order_saveReceipts" class="pull-right-xs btn btn-sm btn-info btn-addon" ng-click="saveReceipts()" ng-show="true"><i class="fa fa-check"></i>确定</button>
							<button id="receiptManagent_order_backUrl" ng-click="backUrl()" class="pull-right-xs btn btn-sm btn-warning btn-addon"><i class="fa fa-times"></i>取消</button>
                        </div>
                    </div>

                    <!--orderTotal Modal -->
                    <div class="modal fade bs-example-modal-lg" id="orderTotal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button id="receiptManagent_order_orderTotalClose" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="orderTotalModalLabel">总线路货物信息</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">发货地址<span class="text-danger">*</span></label>
                                        <div class="col-lg-6">
                                            <!--<ng-area city-list="shipCityList" area-list="shipAreaList" province="shipProvinceCode" city="shipCityCode" area="shipAreaCode" ng-disabled="true"></ng-area>-->
                                            <div class="form-group form-inline m-n">
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_originProvince" name="originProvince" type="text" class="form-control input-sm" ng-value="OData.originProvinceStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_originCity" name="originCity" type="text" class="form-control input-sm" ng-value="OData.originCityStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_originCounty" name="originCounty" type="text" class="form-control input-sm" ng-value="OData.originCountyStr" disabled="disabled">
                                                </div>
                                            </div>
                                            <br />
                                            <input id="receiptManagent_order_originDetails" type="text" class="form-control" ng-model="OData.originDetails" placeholder="请填写详细地址" disabled="disabled" name="originDetails">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">送货地址<span class="text-danger">*</span></label>
                                        <div class="col-lg-6">
                                            <!--<ng-area city-list="deliverCityList" area-list="deliverAreaList" province="deliverProvinceCode" city="deliverCityCode" area="deliverAreaCode" ng-disabled="true"></ng-area>
                                            <br />-->
                                            <div class="form-group form-inline m-n">
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_destinationProvince" name="destinationProvince" type="text" class="form-control input-sm" ng-value="OData.destinationProvinceStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_destinationCity" name="destinationCity" type="text" class="form-control input-sm" ng-value="OData.destinationCityStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_destinationCounty" name="destinationCounty" type="text" class="form-control input-sm" ng-value="OData.destinationCountyStr" disabled="disabled">
                                                </div>
                                            </div>
                                            <br />
                                            <input id="receiptManagent_order_destinationDetails" type="text" class="form-control" ng-model="OData.destinationDetails" placeholder="请填写详细地址" name="destinationDetails" disabled="disabled">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">中转地</label>
                                        <div class="col-lg-6">
                                            <span class="ui-select-bootstrap dropdown form-control" disabled="disabled">
                                                <span ng-repeat="item in OData.viaAddressList">
                                                    <span style="margin-right: 3px; margin-bottom:3px;" class="ui-select-match-item btn btn-default btn-xs">
                                                        <span>{{item}}</span>
                                                    </span>
                                                </span>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">发货时间<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_deliveryTime" type="text" class="form-control " ng-model="OData.deliveryTime" disabled="disabled" name="deliveryTime">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">到货时间<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_arrivalTime" type="text" class="form-control " ng-model="OData.arrivalTime" disabled="disabled" name="arrivalTime">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">里程数</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_mileage" type="text" class="form-control " ng-model="OData.mileage" disabled="disabled" name="mileage">
                                        </div>
                                        <label class="pull-left control-label">公里</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物类别<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_goodsTypeName" name="goodsTypeName" class="form-control" ng-model="OData.goodsTypeName" disabled="disabled">
                                                <!--<option value="">请选择</option>-->
                                            <!--</input>-->
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物名称<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_goodsName" name="goodsName" class="form-control" ng-model="OData.goodsName" disabled="disabled" >
                                                <!--<option value="">请选择</option>-->
                                            <!--</input>-->
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">吨位范围<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_tonnageRange" name="tonnageRange" class="form-control" ng-model="OData.tonnageRange" disabled="disabled" >
                                                <!--<option value="">其它</option>-->
                                            <!--</input>-->
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物数量<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_goodsNum" type="text" class="form-control " ng-model="OData.realQuantityOfGoods" disabled="disabled" name="goodsNum">
                                        </div>
                                        <div class="pull-left m-l-n-sm">
                                            <input id="receiptManagent_order_goodsNumUnit" class="form-control" ng-model="OData.goodsUnit" name="goodsNumUnit" disabled="disabled" >
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物数量2</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_goodsNumTwo" type="text" class="form-control " ng-model="OData.quantityOfGoodsTwo" disabled="disabled" name="goodsNumTwo">
                                        </div>
                                        <div class="pull-left m-l-n-sm">
                                            <input id="receiptManagent_order_goodsNumUnitTwo" class="form-control" ng-model="OData.goodsUnitTwo" name="goodsNumUnitTwo" disabled="disabled" >
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button id="receiptManagent_order_orderTotalCancel" type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!--orderChildren Modal -->
                    <div class="modal fade bs-example-modal-lg" id="orderChildren" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button id="receiptManagent_order_orderChildClose" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="orderChildrenModalLabel">子线路货物信息</h4>
                                </div>
                                <div class="modal-body">
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">发货地址<span class="text-danger">*</span></label>
                                        <div class="col-lg-6">
                                            <!--<ng-area city-list="shipCityChildList" area-list="shipAreaChildList" province="shipProvinceChildCode" city="shipCityChildCode" area="shipAreaChildCode" ng-disabled="true"></ng-area>
                                            <br />-->
                                            <div class="form-group form-inline m-n">
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_shipProvince" name="shipProvince" type="text" class="form-control" ng-value="childData.shipProvinceStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_shipCity" name="shipCity" type="text" class="form-control" ng-value="childData.shipCityStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_shipArea" name="shipArea" type="text" class="form-control" ng-value="childData.shipAreaStr" disabled="disabled">
                                                </div>
                                            </div>
                                            <br/>
                                            <input id="receiptManagent_order_shipAddress" type="text" class="form-control" ng-model="childData.shipAddress" placeholder="请填写详细地址" disabled="disabled" name="shipAddress">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">送货地址<span class="text-danger">*</span></label>
                                        <div class="col-lg-6">
                                            <!--<ng-area city-list="deliverCityChildList" area-list="deliverAreaChildList" province="deliverProvinceChildCode" city="deliverCityChildCode" area="deliverAreaChildCode" ng-disabled="true"></ng-area>
                                            <br />-->
                                            <div class="form-group form-inline m-n">
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_deliverProvince" name="deliverProvince" type="text" class="form-control" ng-value="childData.deliverProvinceStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_deliverCity" name="deliverCity" type="text" class="form-control" ng-value="childData.deliverCityStr" disabled="disabled">
                                                </div>
                                                <div class="form-group m-n">
                                                    <input id="receiptManagent_order_deliverArea" name="deliverArea" type="text" class="form-control" ng-value="childData.deliverAreaStr" disabled="disabled">
                                                </div>
                                            </div>
                                            <input id="receiptManagent_order_deliverAddress" type="text" class="form-control" ng-model="childData.deliverAddress" placeholder="请填写详细地址" name="deliverAddress" disabled="disabled">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">中转地</label>
                                        <div class="col-lg-6">
                                            <span class="ui-select-bootstrap dropdown form-control" disabled="disabled">
                                                <span ng-repeat="item in childData.viaAddressList">
                                                    <span style="margin-right: 3px; margin-bottom:3px;" class="ui-select-match-item btn btn-default btn-xs">
                                                        <span>{{item}}</span>
                                                    </span>
                                                </span>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">发货时间<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_shipTime" type="text" class="form-control " ng-model="childData.shipTime" disabled="disabled" name="shipTime">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">到货时间<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_arriveTime" type="text" class="form-control " ng-model="childData.arriveTime" disabled="disabled" name="arriveTime">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">里程数</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_childMileage" type="text" class="form-control " ng-model="childData.mileage" disabled="disabled" name="childMileage">

                                        </div>
                                        <label class="pull-left control-label">公里</label>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物类别<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_childGoodsType" name="childGoodsType" id="goodsType" class="form-control" ng-model="childData.goodsType" disabled="disabled" n>
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物名称<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_childGoodsName" name="childGoodsName" class="form-control" ng-model="childData.goodsName" disabled="disabled" >
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">吨位范围<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_tonRange" name="tonRange" class="form-control" ng-model="childData.tonRange" disabled="disabled" >
                                                <!--<option value="">其它</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物数量<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_childGoodsNum" type="text" class="form-control " ng-model="childData.goodsNum" disabled="disabled" name="childGoodsNum">
                                        </div>
                                        <div class="pull-left m-l-n-sm">
                                            <input id="receiptManagent_order_childGoodsNumUnit" class="form-control" ng-model="childData.goodsNumUnit" name="childGoodsNumUnit" disabled="disabled" >
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">货物数量2</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_childGoodsNumTwo" type="text" class="form-control " ng-model="childData.goodsNumTwo" disabled="disabled" name="childGoodsNumTwo">
                                        </div>
                                        <div class="pull-left m-l-n-sm">
                                            <input id="receiptManagent_order_childGoodsNumUnitTwo" class="form-control" ng-model="childData.goodsNumUnitTwo" name="childGoodsNumUnitTwo"  disabled="disabled">
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">结算方式<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_settleType" class="form-control" ng-model="childData.settleType" name="settleType" disabled="disabled">
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">含税<span class="text-danger">*</span></label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_includeTax" class="form-control" ng-model="childData.includeTax" name="includeTax" disabled="disabled">
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">应收说明</label>
                                        <div class="col-lg-6">
                                            <input id="receiptManagent_order_receivableRemarks" type="text" class="form-control " ng-model="childData.receivableRemarks" disabled="disabled" name="receivableRemarks">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">结算单位<span class="text-danger">*</span></label>
										<div class="col-lg-3">
											<input id="receiptManagent_order_reckoner" type="text" class="form-control " ng-model="childData.reckoner" disabled="disabled" name="reckoner">
										</div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">工程名称</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_projectName" type="text" class="form-control " ng-model="childData.projectName" disabled="disabled" name="projectName">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">工程编号</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_projectCode" type="text" class="form-control " ng-model="childData.projectCode" disabled="disabled" name="projectCode">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">工程总量</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_projectTotal" type="text" class="form-control " ng-model="childData.projectTotal" disabled="disabled" name="projectTotal">
                                        </div>
                                        <div class="pull-left m-l-n-sm">
                                            <input  name="receiptManagent-order-projectTotalUnit" class="form-control" id="goodsQuantityUnit" ng-model="childData.projectTotalUnit" disabled="disabled">
                                                <!--<option value="">请选择</option>-->
                                            </input>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">收货单位</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_takeGoodsCompany" type="text" class="form-control " ng-model="childData.takeGoodsCompany" disabled="disabled" name="takeGoodsCompany">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">收货人</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_consignee" type="text" class="form-control " ng-model="childData.consignee" disabled="disabled" name="consignee">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">收货人号码</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_consigneePhone" type="text" class="form-control " ng-model="childData.consigneePhone" disabled="disabled" name="consigneePhone">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 control-label">发货单号</label>
                                        <div class="col-lg-3">
                                            <input id="receiptManagent_order_shipOrderId" type="text" class="form-control " ng-model="childData.shipOrderId" disabled="disabled" name="shipOrderId">
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button id="receiptManagent_order_orderChildCancel" type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- feeList Modal -->
                    <div class="modal fade bs-example-modal-lg" id="feeList" tabindex="-1" data-focus-on="input:first" style="display: none;">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button id="receiptManagent_order_feeClose" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="feeListModalLabel">费用申领</h4>
                                </div>
                                <form class="form-validation form-horizontal" novalidate>
                                    <div class="modal-body">
                                        <div class="panel-heading font-bold m-b-sm">
                                            费用申领:
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">费用类型<span class="text-danger">*</span></label>
                                            <div class="col-lg-3">
                                                <input id="receiptManagent_order_feeTypeStr" type="text" class="form-control input-sm" ng-value="feeData.feeType" disabled="disabled" name="feeTypeStr">
                                            </div>
                                            <label class="col-lg-2 control-label">付款方式<span class="text-danger">*</span></label>
                                            <div class="col-lg-3">
                                                <input id="receiptManagent_order_paymentMethodStr" type="text" class="form-control input-sm" ng-value="feeData.paymentMethod" disabled="disabled" name="paymentMethodStr">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">申领金额<span class="text-danger">*</span></label>
                                            <div class="col-lg-3">
                                                <input id="receiptManagent_order_applyFeeBox" type="text" disabled="disabled" ng-pattern="/^[0-9]+(\.[0-9]{1,2})?$/" class="form-control" ng-value="feeData.feeAmount" onFocus="this.value=''" value="0" name="applyFeeBox" required>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">申领人<span class="text-danger">*</span></label>
                                            <label class="col-lg-2 control-label text-left">{{feeData.applicant}}</label>

                                            <label class="col-lg-3 control-label">结算承运商</label>
                                            <label class="col-lg-2 control-label text-left">{{feeData.carrier}}</label>
                                        </div>

                                        <div class="panel-heading font-bold m-b-sm">
                                            支出事由:
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">支出事由</label>
                                            <div class="col-lg-6">
                                                <textarea id="receiptManagent_order_payResonBox" class="form-control" disabled="disabled" ng-model="feeData.expenditureReasons" placeholder="请填写支出事由" name="payResonBox"></textarea>
                                            </div>
                                        </div>
                                        <div class="panel-heading font-bold m-b-sm">
                                            支出账户:
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">银行卡号<span class="text-danger">*</span></label>
                                            <div class="col-lg-3">
                                                <input id="receiptManagent_order_feeBankCode" type="text" class="form-control input-sm" ng-value="feeData.bankCode" placeholder="请填写银行卡号" disabled="disabled" required name="feeBankCode">
                                            </div>
                                            <label class="col-lg-2 control-label">开户银行<span class="text-danger">*</span></label>
                                            <div class="col-lg-3">
                                                <input id="receiptManagent_order_feeOpenBank" type="text" class="form-control input-sm" ng-value="feeData.openBank" placeholder="请填写开户银行" disabled="disabled" required name="feeOpenBank">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">持卡人姓名<span class="text-danger">*</span></label>
                                            <div class="col-lg-3">
                                                <input id="receiptManagent_order_feeHolder" type="text" class="form-control input-sm" ng-value="feeData.holder" placeholder="请填写持卡人姓名" disabled="disabled" required name="feeHolder">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <button id="receiptManagent_order_feeCancel" type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!-- imgrotate model -->
                    <tms-img-rotate src="selectedImgSrc"></tms-img-rotate>
                    

                </form>
            </div>
        </div>
    </div>
</div>